﻿using System;
using TMT_CMS.BL.Excel.AttributeUtility;

namespace TMT_CMS.BL.Excel.Entity
{
    /*
    create table FeeType
    (
        FeeTypeNo            SHORT           not null,
        ChineseName          STRING,
        EnglishName          STRING,
        IsChangable          BINARY,
        IsRepay              BINARY,
        Margin               LONG,
    constraint PK_FEETYPE primary key (FeeTypeNo)
    );
    */

    public class FeeType
    {
        private short _ID = -1;
        private string _ChineseName = string.Empty;
        private string _EnglishName = string.Empty;
        private bool _IsChangable = false;
        private bool _IsRepay = false;
        private long _Margin = -1;

        [DataAttribute("ID", AttributeUtility.DataType.ShortInt, "费用类型编号")]
        public short ID
        {
            get { return _ID; }
            set { _ID = value; }
        }

        [DataAttribute("ChineseName", AttributeUtility.DataType.String, "中文名字")]
        public string ChineseName
        {
            get { return _ChineseName; }
            set { _ChineseName = value; }
        }

        [DataAttribute("EnglishName", AttributeUtility.DataType.String, "英文名字")]
        public string EnglishName
        {
            get { return _EnglishName; }
            set { _EnglishName = value; }
        }

        [DataAttribute("IsChangable", AttributeUtility.DataType.Bool, "是否可以修改")]
        public bool IsChangable
        {
            get { return _IsChangable; }
            set { _IsChangable = value; }
        }

        [DataAttribute("IsRepay", AttributeUtility.DataType.Bool, "是否可以预付")]
        public bool IsRepay
        {
            get { return _IsRepay; }
            set { _IsRepay = value; }
        }

        [DataAttribute("Margin", AttributeUtility.DataType.Long, "浮动范围")]
        public long Margin
        {
            get { return _Margin; }
            set { _Margin = value; }
        }
    }
}
